package cn.bxshey.resourceSharing.entity;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * (Comments)表实体类
 *
 * @author makejava
 * @since 2023-12-16 17:54:38
 */
@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("comments")
public class Comments {
    @TableId
    private Long id;
    //评论者的id
    private Long uid;
    //该评论回复的评论的用户id
    private Long replyId;
    //评论所属文章id
    private Long eid;
    //所属父评论的id
    private Long pid;
    //使用浏览器
    private String browser;
    //使用系统
    private String systems;
    //评论时间
    @TableField(value = "date_time")
    private Date time;
    //评论内容
    private String content;
    //回复所属评论者的名字
    @TableField(exist = false)
    private String replyName;
    //评论者email
    @TableField(exist = false)
    private String email;
    //回复所属评论者的email
    @TableField(exist = false)
    private String replyEmail;
    //评论者名字
    @TableField(exist = false)
    private String username;
    //子评论列表
    @TableField(exist = false)
    List<Comments> comments;
}
